package Supermarket;
public abstract class Goods {
    String name;
    double  price;
    Goods(){}
    Goods(String name,double price){
        this.name=name;
        this.price=price;
    }
}
class Vegetable extends Goods implements Discount{
    Boolean today;
    Vegetable(){}
    Vegetable(Boolean today,String name,double price){
        super(name, price);
        this.today=today;
    }
    @Override
    public void discount() {
        price*=0.8;
       // System.out.println(price);
    }
    void discount1() {
        price*=0.8;
        //System.out.println(price);
    }
}
class meat extends Goods implements Discount{
    meat(){}
    meat(String name,double price){
        super(name, price);
    }

    @Override
    public void discount() {
        price*=1.5;
        //System.out.println(price);
    }
}